how to load a method at run time